import request from '@/utils/request'


export default {
  getAll() {
    return request({
      url: '/screen/getall',
      method: 'get',
    })
  },
  get(screenId) {
    return request({
      url: '/screen/get/' + screenId,
      method: 'get',
    })
  },
  update(data) {
    return request({
      url: '/screen/update',
      method: 'put',
      data
    })
  },
  updatecover(data) {
    return request({
      url: '/screen/updatecover',
      method: 'put',
      data
    })
  },
  updateBaseInfo(data) {
    return request({
      url: '/screen/updateBaseInfo',
      method: 'put',
      data
    })
  },
  create(data) {
    return request({
      url: '/screen/create',
      method: 'post',
      data
    })
  },
  copycomponent(screenComponentId) {
    return request({
      url: '/screen/copycomponent/'+screenComponentId,
      method: 'post',
    })
  },
  importcomponents(data) {
    return request({
      url: '/screen/importcomponents',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: '/screen/delete/'+id,
      method: 'delete',
    })
  },
  copy(id) {
    return request({
      url: '/screen/copy/'+id,
      method: 'post',
    })
  },
  execute(data) {
    return request({
      url: '/screen/execute',
      method: 'post',
      data
    })
  }
}

